﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace My.Core.SignalR
{
	/// <summary>
	/// 即时通信集线器配置特性
	/// </summary>
	[AttributeUsage(AttributeTargets.Class)]
	public sealed class MapHubAttribute : Attribute
	{
		/// <summary>
		/// 配置终点路由地址
		/// </summary>
		public string Pattern { get; set; }

		/// <summary>
		/// 构造函数
		/// </summary>
		/// <param name="pattern"></param>
		public MapHubAttribute(string pattern)
		{
			Pattern = pattern;
		}
	}
}
